using MediatR;
using Medical.ReadApi.Dto;
using Medical.WriteApi.Dto;

namespace Medical.WriteApi.Appcontext.Command
{
	/// <summary>
	/// 创建挂号单模板命令
	/// </summary>
	public class CreateRegistrationSlipTemplateCommand : IRequest<RegistrationSlipTemplateDto>
	{
		/// <summary>
		/// 模板名称
		/// </summary>
		public string TemplateName { get; set; } = string.Empty;

		/// <summary>
		/// 描述
		/// </summary>
		public string? Description { get; set; }

		/// <summary>
		/// 是否启用
		/// </summary>
		public bool IsActive { get; set; } = true;

		/// <summary>
		/// 是否默认模板
		/// </summary>
		public bool IsDefault { get; set; } = false;

		/// <summary>
		/// 优先级规则（JSON字符串）
		/// </summary>
		public string? PriorityRules { get; set; }

		/// <summary>
		/// 配置的字段列表（JSON字符串）
		/// </summary>
		public string? ConfiguredFields { get; set; }
	}
}
